﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace _17bangMVC.Models
{
    public class OnModel
    {
        [Required(ErrorMessage = "*用户名不能为空")]
        public string Name { get; set; }
        [Required(ErrorMessage = "*密码不能为空")]
        [MinLength(4, ErrorMessage = "*密码的长度至少为4位")]
        public string Password { get; set; }
        [StringLength(4, MinimumLength = 4, ErrorMessage = "*验证码的长度只能为4")]
        [Required(ErrorMessage = "*验证码不能为空")]
        public string Code { get; set; }
        public bool RememberMe { get; set; }
    }
}